updating oE warning_file
warning_file
include error.e namespace error public procedure warning_file(object file_path)
specifies a file path where to output warnings.
Parameters:
- file_path : an object indicating where to dump any warning that were produced.
Comments:
By default, warnings are displayed on the standard error, and require pressing the Enter key to keep going. Redirecting to a file enables skipping the latter step and having a console window open, while retaining ability to inspect the warnings in case any was issued.
Any atom >= 0 causes standard error to be used, thus reverting to default behaviour.
Any atom < 0 suppresses both warning generation and output. Use this latter in extreme cases only.
On an error, some output to the console is performed anyway, so that whatever warning file was specified is ignored then.
Example 1:
warning_file("warnings.lst") -- some code warning_file(0) -- changed opinion: warnings will go to standard error as usual
See Also:
Not Categorized, Please Help
|